<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property int $user_id 
 * @property string $title 
 * @property string $slug 
 * @property string $content 
 * @property string $summary 
 * @property string $content_type 
 * @property string $cover_image 
 * @property string $status 
 * @property int $view_count 
 * @property int $like_count 
 * @property int $comment_count 
 * @property int $favorite_count 
 * @property int $reading_time 
 * @property string $published_at 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Article extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'articles';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'user_id', 'title', 'slug', 'content', 'summary', 'content_type', 'cover_image', 'status', 'view_count', 'like_count', 'comment_count', 'favorite_count', 'reading_time', 'published_at', 'created_at', 'updated_at'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'user_id' => 'integer', 'view_count' => 'integer', 'like_count' => 'integer', 'comment_count' => 'integer', 'favorite_count' => 'integer', 'reading_time' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}